package com.quanta.edaily.mapper;

import com.quanta.edaily.pojo.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleMapper {
    int insert(Article article);
    int deleteById(Integer id);
    int updateById(Article article);
    Article getById(Integer id);
    List<Article> get(@Param("pageNum") Integer pageNum,
                      @Param("pageSize") Integer pageSize,
                      @Param("title") String title);

//    List<Article> findPage(@Param("pageNum") int pageNum, @Param("pageSize")int pageSize);
}
